<template>
  <div id="app">
    <router-view></router-view>
  </div>
</template>
<script>
// import { userInfo, getCar } from "./api/index";
import { mapMutations } from "vuex";
export default {
  data() {
    return {};
  },
  methods: {
    ...mapMutations(["saveUserInfo", "saveCarInfo"]),
   
  },
 
  created() {
    if (this.$store.getters.getIsLogin) {
     this.$store.dispatch("getInfo")
     this.$store.dispatch("getcars")
    }
  }
  
};
</script>
<style lang="scss">
</style>
